package org.fly.dao;

import org.apache.ibatis.annotations.Param;
import org.fly.bean.Classification;
import org.fly.bean.query.ClassificationQuery;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author   fly
 */
@Repository
public interface ClassificationDao {

    List<Classification> list(ClassificationQuery query);

    long count(ClassificationQuery query);

    Classification findById(String id);

    void delete(String i);

    void update(Classification bean);

    void updateChildSort(@Param("pId") String pId,@Param("pSort") long pSort);

    void insert(Classification bean);

    List<Classification> listByParentId(String parentId);

    List<Classification> listByIdList(List<String> idList);
}
